// 文章的路由模块

const express = require('express')
const router = express.Router()
const comments_handler = require("../router_handler/comments");
const dynamic_handler = require("../router_handler/dynamic");


// 获取评论
router.get('/all', comments_handler.getComments)

// 增加评论
router.post('/add', comments_handler.addComments)


// 点赞
router.post('/addLike', comments_handler.addCommentLike)

// 取消点赞
router.delete('/deleteLike/:target', comments_handler.deleteCommentLike)

module.exports = router
